KFbxImporter Class Reference
#include <kfbximporter.h>
List of all members.
Detailed Description
Class to import an FBX file into SDK objects.
Typical workflow for using the KFbxImporter
class:
- create an importer
- initialize the importer with a file name
- set numerous states, take information, defining how the
importer will behave
- call KFbxImporter::Import()
with an empty scene
Definition at line 101 of file kfbximporter.h.
Member Enumeration Documentation
Stream options identifiers.
- eSTREAMOPTIONS_PARSE_FILE
- eSTREAMOPTIONS_FAST Do not parse the file.
- eSTREAMOPTIONS_COUNT
Definition at line 170 of file kfbximporter.h.
Member Function Documentation
virtual bool Initialize |
( |
const char * |
pFileName, |
|
|
const int |
pFileFormat = -1 |
|
|
) |
|
|
[virtual] |
Initialize object.
- Parameters:
-
|
pFileName |
Name of file to access. |
|
pFileFormat |
file format identifier User does not need to specify it by
default. if not specified, plugin will detect the file format
according to file suffix automatically. |
- Returns:
true
on success, false
otherwise.
virtual bool Initialize |
( |
KFile * |
pFile, |
|
|
const int |
pFileFormat = -1 |
|
|
) |
|
|
[virtual] |
Initialize object.
- Parameters:
-
|
pFile |
file to access. Ownership is transfered to this object. |
|
pFileFormat |
file format identifier User does not need to specify it by
default. if not specified, plugin will detect the file format
according to file suffix automatically. |
- Returns:
true
on success, false
otherwise.
virtual KFile* GetFile |
( |
|
) |
[virtual] |
Get the file, if any.
- Returns:
- File or an null if the file has not been set.
void GetFileVersion |
( |
int & |
pMajor, |
|
|
int & |
pMinor, |
|
|
int & |
pRevision |
|
|
) |
|
|
|
Get the FBX version number of the FBX file.
FBX version numbers start at 5.0.0.
- Parameters:
-
|
pMajor |
Version major number. |
|
pMinor |
Version minor number. |
|
pRevision |
Version revision number. |
bool GetDefaultRenderResolution |
( |
KString
& |
pCamName, |
|
|
KString
& |
pResolutionMode, |
|
|
double & |
pW, |
|
|
double & |
pH |
|
|
) |
|
|
|
Get the default rendering resolution if present in the file
header.
- Parameters:
-
|
pCamName |
Returned name of the camera. |
|
pResolutionMode |
Returned resolution mode. |
|
pW |
Returned width. |
|
pH |
Returned height. |
- Returns:
true
if the default rendering settings are defined
in the file, otherwise returns false
with empty
parameters.
Get the complete file header information.
- Returns:
- valid pointer to the complete header information
Read the currently opened file header to retrieve information
related to takes.
- Parameters:
-
|
pStreamOptionsGeneration |
Stream options identifier. |
- Returns:
- Pointer to file import options or
NULL
on
failure.
Read the currently opened file header to retrieve information
related to takes.
- Parameters:
-
|
pFbxObject |
Target FBX file. |
- Returns:
- Pointer to stream import options or
NULL
on
failure.
Import the currently opened file into a scene.
- Parameters:
-
|
pDocument |
Document to fill with file content. |
|
pStreamOptions |
Pointer to file import options. |
- Returns:
true
on success, false
otherwise.
Release the file import options.
- Parameters:
-
|
pStreamOptions |
Pointer to file import options. |
void SetPassword |
( |
char * |
pPassword |
) |
|
Set the password.
All subsequently imported files are opened with the given
password.
- Parameters:
-
|
pPassword |
Password string. |
Get the number of available takes in the file.
- Returns:
- Number of takes.
Get the take information about an available take.
Use the returned reference to a
KFbxTakeInfo object to set whether the indexed take is
imported.
- Parameters:
-
|
pIndex |
Index of the requested take. |
- Returns:
- Take information or
NULL
if function failed.
char* GetCurrentTakeName |
( |
|
) |
|
Return the current take name.
- Returns:
- Current take name if there is one, otherwise returns an empty
string.
Get the scene info.
- Returns:
- Pointer to the scene info or
NULL
if no scene
information is available in the file.
K_DEPRECATED void SetFileFormat |
( |
int |
pFileFormat |
) |
|
Set the imported file format.
- Parameters:
-
|
pFileFormat |
File format identifier. |
Get the format of the imported file.
- Returns:
- File format identifier.
- Returns:
true
if the file format is a recognized FBX
format.
KFbxImporter KFbxImporter KFbxImporter
KFbxImporter KFbxImporter KFbxImporter KFbxImporter KFbxImporter
KFbxImporter KFbxImporter
KFbxImporter KFbxImporter KFbxImporter
KFbxImporter KFbxImporter KFbxImporter KFbxImporter KFbxImporter
KFbxImporter KFbxImporter